package com.csun.dsms.service.impl;

import com.csun.dsms.comment.core.support.BaseService;
import com.csun.dsms.mapper.DsmsProjectMapper;
import com.csun.dsms.model.domain.DsmsProject;
import com.csun.dsms.service.DsmsProjectService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author chisj chisj@foxmail.com
 * @version 1.0.0
 * @date 2021-09-01 11:57
 * @description: TODO
 */
@Service
@Transactional
public class DsmsProjectServiceImpl extends BaseService<DsmsProject> implements DsmsProjectService {

    @Resource
    private DsmsProjectMapper dsmsProjectMapper;

    /*
     * 服务项目的查询
     * */
    @Override
    public List<DsmsProject> query(DsmsProject dsmsProject) {
        return dsmsProjectMapper.query(dsmsProject);
    }

    @Override
    public List<DsmsProject> queryByName(DsmsProject project) {
        return dsmsProjectMapper.queryByName(project);
    }
}
